import serves from './axios'
import store from '@/store/index'

// 登录
export function login(data) {
  return serves({
    url: 'admin/login',
    method: 'post',
    data
  })
}

// 重置登录密码
export function resetPass(data) {
  return serves({
    url: 'admin/resetPass',
    method: 'post',
    data: {
      token: store.state.token,
      ...data
    }
  })
}